<template>
  <div>
    <!-- <h1>这是首页页面展示的数字{{count}}</h1>
    <button @click="add">给count的数字加1</button>&nbsp;
    <button @click="addPlus">计算加加</button> -->
    <TypeNav></TypeNav>
    <ListContainer></ListContainer>
    <TodayRecommend></TodayRecommend>
    <Rank></Rank>
    <Like></Like>
    <Floor></Floor>
    <Brand></Brand>
  </div>
</template>

<script>
import ListContainer from './ListContainer'
import TodayRecommend from './TodayRecommend'
import Rank from './Rank'
import Like from './Like'
import Floor from './Floor'
import Brand from './Brand'
import {reqCategoryList} from '@/api/index'
import {mapState} from 'vuex'
export default {
  name :'Home',
  components:{
    ListContainer,
      TodayRecommend,
      Rank,Like,
      Floor,
      Brand
  },
//   methods: {
//       add (){
//           this.$store.dispatch ('add')
//       },
//       addPlus(){
//           this.$store.dispatch('addPlus', 2)
//       }
//   },
//   computed:{
//       ...mapState(['count'])
//   },
//   mounted() {
//     reqCategoryList();
//     //在axction种派发dispatch任务，
//     this.$store.dispatch('getCategory')
//   },
}
</script>

<style>
</style>